package com.panwenliang.rememberwords.ui

import android.content.Intent
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.analytics.FirebaseAnalytics
import com.panwenliang.rememberwords.R
import com.panwenliang.rememberwords.ui.login.LoginActivity
import java.util.concurrent.TimeUnit


class WelcomeActivity : AppCompatActivity() {

    private var mFirebaseAnalytics: FirebaseAnalytics? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_welcome)

        mFirebaseAnalytics = FirebaseAnalytics.getInstance(this)

        Handler().postDelayed(
            {
                val intent = Intent(this, LoginActivity::class.java)
                startActivity(intent)
                finish()
            },
            TimeUnit.SECONDS.toMillis(1)
        )
    }
}